package com.sxit.myproscenium.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author wcn
 * @since 2022-04-10
 */
@TableName("sys_goods")
@Schema(name = "Goods对象", description = "")
public class Goods implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "商品id")
  @TableId(value = "goods_id", type = IdType.AUTO)
  private Long goodsId;

  @Schema(description = "商品的姓名")
  private String goodsName;

  @Schema(description = "仓货序列")
  private Long stockId;

  @Schema(description = "商品的剩余数量")
  private Integer quantity;

  @Schema(description = "商品的图示")
  private String goodsPicture;

  @Schema(description = "商品所属的类别")
  private Long categoryId;

  @Schema(description = "创建时间")
  private LocalDateTime createTime;

  @Schema(description = "修改时间")
  private LocalDateTime updateTime;

  @Schema(description = "商品的价钱")
  private BigDecimal price;

  @Schema(description = "是否显示 1显示 2 不显示")
  private Integer isShow;

  @Schema(description = "属性")
  private String attribute;

  public String getAttribute() {
    return attribute;
  }

  public void setAttribute(String attribute) {
    this.attribute = attribute;
  }

  public Long getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(Long goodsId) {
    this.goodsId = goodsId;
  }

  public String getGoodsName() {
    return goodsName;
  }

  public void setGoodsName(String goodsName) {
    this.goodsName = goodsName;
  }

  public Long getStockId() {
    return stockId;
  }

  public void setStockId(Long stockId) {
    this.stockId = stockId;
  }

  public Integer getQuantity() {
    return quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public String getGoodsPicture() {
    return goodsPicture;
  }

  public void setGoodsPicture(String goodsPicture) {
    this.goodsPicture = goodsPicture;
  }

  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public LocalDateTime getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(LocalDateTime updateTime) {
    this.updateTime = updateTime;
  }

  public BigDecimal getPrice() {
    return price;
  }

  public void setPrice(BigDecimal price) {
    this.price = price;
  }

  public Integer getIsShow() {
    return isShow;
  }

  public void setIsShow(Integer isShow) {
    this.isShow = isShow;
  }

  @Override
  public String toString() {
    return "Goods{"
        + "goodsId="
        + goodsId
        + ", goodsName="
        + goodsName
        + ", stockId="
        + stockId
        + ", quantity="
        + quantity
        + ", goodsPicture="
        + goodsPicture
        + ", categoryId="
        + categoryId
        + ", createTime="
        + createTime
        + ", updateTime="
        + updateTime
        + ", price="
        + price
        + ", isShow="
        + isShow
        + "}";
  }
}
